i=2
s=0
#对 i s 进行初始化赋值
while i <= 100:
    if i % 2 == 0:
        s=s+i
    elif i % 2 == 1:
        s=s-i
        #i为偶数时相加，奇数时相减
    i=i+1
print(s)




